﻿using System;
using TMT_CMS.BL.Excel.AttributeUtility;

namespace TMT_CMS.BL.Excel.Entity
{
    /*
    create table CountryCode
    (
        ID                   SHORT           not null,
        Abbr                 STRING,
        ChineseName          STRING,
        EnglishName          STRING,
        RussianName          STRING,
        RailwayEnglishName   STRING,
        RailwayEnglishAbbr   STRING,
        RailwayRussianAbbr   STRING,
        RailwayChineseAbbr   STRING,
    constraint PK_COUNTRYCODE primary key (ID)
    );
    */

    public class CountryInfo
    {
        private short _ID = -1;
        private string _Abbr = string.Empty;
        private string _ChineseName = string.Empty;
        private string _EnglishName = string.Empty;
        private string _RussianName = string.Empty;
        private string _RailwayEnglishName = string.Empty;
        private string _RailwayEnglishAbbr = string.Empty;
        private string _RailwayRussianAbbr = string.Empty;
        private string _RailwayChineseAbbr = string.Empty;

        [DataAttribute("ID", DataType.ShortInt, "国家编号")]
        public short ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        [DataAttribute("Abbr", DataType.String, "编码")]
        public string Abbr
        {
            get { return _Abbr; }
            set { _Abbr = value; }
        }

        [DataAttribute("ChineseName", DataType.String, "中文名字")]
        public string ChineseName
        {
            get { return _ChineseName; }
            set { _ChineseName = value; }
        }

        [DataAttribute("EnglishName", DataType.String, "英文名字")]
        public string EnglishName
        {
            get { return _EnglishName; }
            set { _EnglishName = value; }
        }

        [DataAttribute("RussianName", DataType.String, "俄文国名")]
        public string RussianName
        {
            get { return _RussianName; }
            set { _RussianName = value; }
        }

        [DataAttribute("RailwayEnglishName", DataType.String, "铁路英文名")]
        public string RailwayEnglishName
        {
            get { return _RailwayEnglishName; }
            set { _RailwayEnglishName = value; }
        }

        [DataAttribute("RailwayEnglishAbbr", DataType.String, "铁路英文简称")]
        public string RailwayEnglishAbbr
        {
            get { return _RailwayEnglishAbbr; }
            set { _RailwayEnglishAbbr = value; }
        }

        [DataAttribute("RailwayRussianAbbr", DataType.String, "铁路俄文简称")]
        public string RailwayRussianAbbr
        {
            get { return _RailwayRussianAbbr; }
            set { _RailwayRussianAbbr = value; }
        }

        [DataAttribute("RailwayChineseAbbr", DataType.String, "铁路中文简称")]
        public string RailwayChineseAbbr
        {
            get { return _RailwayChineseAbbr; }
            set { _RailwayChineseAbbr = value; }
        }
    }
}
